import launch from "launch-editor";

launch(
  // filename:line:column
  // both line and column are optional
  // `file://` URIs are also supported
  import.meta.url,
  // try specific editor bin first (optional)
  "code",
  // callback if failed to launch (optional)
  (fileName, errorMsg) => {
    // log error if any
  },
);
